﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VsSourceCpoy.Entity;

namespace VsSourceCpoy.Service
{
    public abstract class SolutionFileParserBase
    {
        private ICSharpSlnFileParser _slnFileParser;
        public ICSharpSlnFileParser SlnFileParser
        {
            get
            {
                _slnFileParser = _slnFileParser ?? new Vs2008CSharpSolutionFileParser();
                return _slnFileParser;
            }
            set
            {
                _slnFileParser = value;
            }
        }
      public abstract ParseResult ParseFile(string fileName, Encoding encoding);
    }
}
